package com.lzy.mall.product.service;


import com.lzy.mall.product.entity.PmsBrand;
import com.lzy.mall.product.entity.PmsCategory;
import com.lzy.mall.product.vo.Catelog2Vo;
import com.lzy.mall.product.vo.PmsCategoryVo;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 商品三级分类(PmsCategory)表服务接口
 *
 * @author lzy
 * @since 2021-08-25 11:41:11
 */
public interface PmsCategoryService {

    List<PmsCategoryVo> getTree3();

    void removeMenuByIds(Long[] ids);

    void saveMenu(PmsCategory pmsCategory);

    void updateMenu(PmsCategory pmsCategory);

    PmsCategory getMenuOne(Integer catId);

    PmsCategory getById(Long catId);

    void updateMenuSort(List<PmsCategory> pmsCategories);

    /**
     * 找到分类id的完整路径
     * [父/子/孙]
     * @param catelogId
     * @return
     */
    Long[] findCatelogPath(Long catelogId);

    List<PmsCategory> getLevel1();

    String getCatelogJson();
}
